package com.zui.entity.product;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.zui.entity.BaseAutoIdEntity;
import com.zui.entity.setup.Uom;



@Entity
@Table(name="product_feature")
public class FeaturePrice extends BaseAutoIdEntity {
	private static final long serialVersionUID = 1L;
	
	public FeaturePrice() {}
	
	private Feature feature;
	private PriceType priceType;
	private Uom currencyUom;
	private Date fromDate;
	private Date thruDate;
	private Long price;


	/*------------------------------
	 * getters and annotations
	 --------------------------------*/
	@ManyToOne
	@JoinColumn(name="featureId")
	public Feature getFeature() {return feature;}
	@ManyToOne
	@JoinColumn(name="priceTypeId")
	public PriceType getPriceType() {return priceType;}
	@ManyToOne
	@JoinColumn(name="currencyUomId")
	public Uom getCurrencyUom() {return currencyUom;}
	@Temporal(TemporalType.DATE)
	public Date getFromDate() {return fromDate;}
	@Temporal(TemporalType.DATE)
	public Date getThruDate() {return thruDate;}
	public Long getPrice() {return price;}
	
	
	
	public void setFeature(Feature feature) {
		this.feature = feature;
	}
	public void setPriceType(PriceType priceType) {
		this.priceType = priceType;
	}
	public void setCurrencyUom(Uom currencyUom) {
		this.currencyUom = currencyUom;
	}
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	public void setThruDate(Date thruDate) {
		this.thruDate = thruDate;
	}
	public void setPrice(Long price) {
		this.price = price;
	}

	
	
}
